/*
 * @Author: shilibiao
 * @Date: 2023-04-25 14:11:46
 * @LastEditTime: 2023-04-26 20:06:42
 * @FilePath: \project_cpp\src\main.cpp
 * @Description: 
 */

#include <iostream>
#include <opencv2/opencv.hpp>
#include <Eigen/Core>
#include "glog/logging.h"
#include "swap.h"
#include "sum.h"
#include "sub.h"
#include "print_hello.h" 

int main(int argc, char** argv)
{
    // 测试Eigen库
    Eigen::Matrix2d m;
    m << 1, 2, 3, 4;
    std::cout << m << std::endl;

    // 测试OpenCV库
	cv::Mat img;//初始化一个操作对象
	img = cv::imread("C:/Users/15697/Desktop/project_cpp/amly.jpg");
    std::cout << img.size() << std::endl;
	cv::imshow("amly", img);
    cv::waitKey(0);
    
    // 测试静态库
    std::cout << "sum 2 + 3 = " << sum(std::move(2), std::move(3)) << std::endl;
    std::cout << "sub 2 - 3 = " << sub(std::move(2), std::move(3)) << std::endl;

    // 测试动态库
    // print_hello();
    // print_shi(100);

    // 测试glog库
    google::InitGoogleLogging(argv[0]);
    LOG(INFO) << "I am INFO!";
	LOG(WARNING) << "I am WARNING!";
	LOG(ERROR) << "I am ERROR!";
	LOG(FATAL) << "I am FATAL!";
    
    return 0;
}
